import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import Vant from "vant";
import { createPinia } from "pinia";
import "amfe-flexible/index.js";

import "vant/lib/index.css";
import "./assets/main.css";

// 实例化 Pinia
const pinia = createPinia();

const app = createApp(App);

app.config.compilerOptions.isCustomElement = (tag) => tag.startsWith("wx-");

app.use(router).use(Vant).use(pinia);

app.mount("#app");
